<fieldset class="module aligned {{ fieldset.classes }} well">
    {% if fieldset.name %}<h2>{{ fieldset.name }}</h2>{% endif %}
    {% if fieldset.description %}
        <div class="description">{{ fieldset.description|safe }}</div>
    {% endif %}
    {% for line in fieldset %}
        <div class="clearfix form-row{% if line.errors %} error{% endif %}">
            {% for field in line %}
                    {% if not line.fields|length_is:'1' and not field.is_readonly %}{{ field.errors }}{% endif %}

                        {{ field.label_tag }}
                        {% if field.is_readonly %}
                            <div class="readonly-input input">{{ field.contents }}</div>
                        {% else %}
                            <div class="input">
                              {{ field.field }}
                              {{ line.errors }}
                            </div>
                        {% endif %}

                    {% if field.field.help_text %}
                        <div class="input help_text">{{ field.field.help_text|safe }}</div>
                    {% endif %}
            {% endfor %}
        </div>
    {% endfor %}
</fieldset>
